package com.chinasoft.FSJ;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class fsj implements TrueWord {
    // 构造方法
    public fsj() {
        wordList.add("IDEA，启动！");
        wordList.add("原来你也玩xxx");
        wordList.add("为什么？");
    }

    List<String> wordList = new ArrayList<String>();
    Random random = new Random();

    @Override
    public String getName() {
        return "Student";
    }

    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
